/*
 * Copyright 2012-2019 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.springframework.boot.web.servlet;

/**
 * 过滤器分派类型的枚举，功能与 {@link javax.servlet.DispatcherType} 一致，
 * 用于配置中，因为可能不存在 Servlet API。
 *
 * @author Stephane Nicoll
 * @since 2.0.0
 */
public enum DispatcherType {

	/**
	 * 应用于 "RequestDispatcher.forward()" 调用时的过滤器。
	 */
	FORWARD,

	/**
	 * 应用于 "RequestDispatcher.include()" 调用时的过滤器。
	 */
	INCLUDE,

	/**
	 * 应用于普通客户端请求时的过滤器。
	 */
	REQUEST,

	/**
	 * 应用于异步上下文 (AsyncContext) 调用时的过滤器。
	 */
	ASYNC,

	/**
	 * 应用于错误处理时的过滤器。
	 */
	ERROR

}
